<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'filelist.jsp' starting page</title>
  </head>
  
  <body>
    <a href="file.jspx?m=add">添加新资料</a>
    
    <h3>资料列表</h3>
    <table border="1" width="70%">
    	<tr>
    		<td>文件名称</td>
    		<td>操作</td>
    	</tr>
    	<c:forEach items="${list }" var="d">
    	<tr>
    		<td>${d.name }</td>
    		<td>
    			<a href="file.jspx?m=download&f=${d.fileName }">下载</a>
    		</td>
    	</tr>
    	</c:forEach>
    </table>
  </body>
</html>
